import remixlab.malla.*;

Malla malla;

void setup() {
  size(640, 320, P2D);
  frameRate(5);
  smooth();
  malla = new Malla(this);
  malla.setNumOfColumn(20);
  malla.initialize();
  background(255);
  noFill();
}

void draw() {
  malla.drawMalla();
  int malla_width = malla.getNumOfColumn();
  int malla_height = malla.getNumOfRow();
  for(int i=0; i<malla_width; i++) {
    for(int j=0; j<malla_height; j++){
      int r = int(random(255));
      int g = int(random(255));
      int b = int(random(255));
      malla.drawPoint(i,j,color(r,g,b));
    }
  }
}